import Vue from 'vue'
import App from './App.vue'

import videojs from 'video.js'
import VueVideoPlayer from "vue-video-player";
import '@/assets/video-js.css'

Vue.use(VueVideoPlayer)

import Masonry from 'masonry-layout'
// Vue.use(Masonry)

//引入路由
import router from '@/router'
//引入仓库
import store from '@/store'


import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);

import API from "@/api"
Vue.prototype.$API = API

/* import Swiper from 'swiper';
import 'swiper/css/swiper.css';

Vue.use(Swiper) */

import common from './utils/common';
Vue.prototype.$common = common
import constant from '@/utils/constant'
Vue.prototype.$constant = constant


Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  //全局事件总线$bus的配置
  beforeCreate() {
    Vue.prototype.$bus = this
  },
  //注册路由
  router: router,
  //注册仓库，组件实例身上会多一个$store的属性
  store
}).$mount('#app')
